package com.gitee.shigen.security.service.impl;

import com.gitee.shigen.security.entity.Permission;
import com.gitee.shigen.security.mapper.PermissionMapper;
import com.gitee.shigen.security.service.IPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * @author shigenfu
 * @since 2024-01-21
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {

    @Override
    public List<Permission> getPermissionsByRoleName(String roleName) {
        return getBaseMapper().getPermissionsByRoleName(roleName);
    }
}
